package com.bian.amqp;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


/**
 * 自动配置
 * 1、RabbitAutoConfiguration
 * 2、有自动配置，连接工厂ConnectionFactory
 * 3、RabbitProperties封装了RabbitMq所有的配置
 * 4、RabbitTemplate,给RabbitMQ发送和接收消息、
 * 5、amqpAdmin，RabbitMq系统管理软件
 * */

// 开启基于注解RabbitMQ模式  @EnableRabbit + @RabbitListener 监听消息队列的内容
@EnableRabbit
@SpringBootApplication
public class SpringBoot02AmqpApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringBoot02AmqpApplication.class, args);
	}

}

